<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/overlay.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?>

<!DOCTYPE window [
	<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
]>

<window
    id="zotero-note-window"
    orient="vertical"
	width="400"
	height="350"
	title="&zotero.items.menu.attach.note;"
	persist="screenX screenY width height"
	windowtype="zotero:note"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

	<script>
		var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
		Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
		Services.scriptloader.loadSubScript("resource://zotero/require.js", this);
		Services.scriptloader.loadSubScript("chrome://global/content/globalOverlay.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/editMenuOverlay.js", this);

		Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/note.js", this);
	</script>

	<keyset>
		<key id="key_close" key="W" modifiers="accel" command="cmd_close"/>
	</keyset>
	<command id="cmd_close" oncommand="window.close();"/>

	<note-editor id="zotero-note-editor" flex="1" onerror="return;onEditorError()"/>
</window>
